<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<c:set var="path" value="${pageContext.request.contextPath }" />
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<!-- 视口标签 -->
<meta name="viewport"
	content="width=device-width, initial-scale=1, user-scalable=no" />
<!-- 删除苹果默认的工具栏和菜单栏 -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<!-- 设置苹果工具栏颜色 -->
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<!-- 忽略页面中的数字识别为电话，忽略email识别 -->
<meta name="format-detection" content="telphone=no, email=no" />
<!-- 启用360浏览器的极速模式(webkit) -->
<meta name="renderer" content="webkit">
<!-- 避免IE使用兼容模式 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- 针对手持设备优化，主要是针对一些老的不识别viewport的浏览器，比如黑莓 -->
<meta name="HandheldFriendly" content="true">
<!-- 微软的老式浏览器 -->
<meta name="MobileOptimized" content="320">
<!-- uc强制竖屏 -->
<meta name="screen-orientation" content="portrait">
<!-- QQ强制竖屏 -->
<meta name="x5-orientation" content="portrait">
<!-- UC应用模式 -->
<meta name="browsermode" content="application">
<!-- QQ应用模式 -->
<meta name="x5-page-mode" content="app">
<!-- windows phone 点击无高光 -->
<meta name="msapplication-tap-highlight" content="no">
<!-- 适应移动端end -->
<link rel="stylesheet" type="text/css"
	href="${path }/resource/css/base.css" />
<link rel="stylesheet" type="text/css"
	href="${path }/resource/css/index.css" />
<script type="text/javascript"
	src="${path }/resource/js/plugin/jquery-2.1.4.min.js"></script>
<script type="text/javascript"
	src="${path }/resource/js/plugin/TouchSlide.1.1.js"></script>
<script type="text/javascript"
	src="${path }/resource/js/plugin/clipboard.min.js"></script>
<title>会员中心—个人中心</title>
</head>
<body>
	<div class="wrap">
		<section class="white">
			<div class="pro_info row">
				<img src="${designer.desHeadimgurl}" class="pro_gr border" alt="头像" onclick="window.location.href='${path}/app/users/toEditInfo'">
				<div class="pro_info_right ">
					<h1 class="title">${designer.desName}</h1>
					<p class="color_h">下级返点比例：${designer.desSubProportion}%   客户返点比例：${designer.desRebateProportion}%</p>
					<p class="color_h">返点：￥${designer.desRebate}</p>
					<div class="right_icon" onclick="window.location.href='${path}/app/redirect/users/user_withdrawals'"></div>
				</div>
			</div>
		</section>
		<section class="white">
			<ul>
				<li class="my mycenter-left row">
					<div class="rightcon">
						<span class="con-title">我的邀请码</span> <a class="right-txt" id="desInviteCode" href="javascript:void(0);"
							style="right: 1.2rem;text-decoration: none;" data-clipboard-text="${designer.desInviteCode}">${designer.desInviteCode}</a>
					</div>
				</li>

				<li class="my row mycenter-left"
					onclick="window.location.href='${path}/app/users/toMySubList'">
					<div class="rightcon">
						<span class="con-title">我的下级</span> <span class="right-txt">${subNum}人</span>
						<span class="right_icon"></span>
					</div>
				</li>
				<li class="my row mycenter-left"
					onclick="window.location.href='${path}/app/users/toMyCusList'">
					<div class="rightcon">
						<span class="con-title">我的客户</span> <span class="right_icon"></span>
					</div>
				</li>
				<li class="my row mycenter-left"
					onclick="window.location.href='${path}/app/users/toRebateFlow?desId=${designer.desId}'">
					<div class="rightcon">
						<span class="con-title">返点记录</span> <span class="right_icon"></span>
					</div>
				</li>
				<li class="my row mycenter-left"
					onclick="window.location.href='${path}/app/users/toMyCouponList'">
					<div class="rightcon">
						<span class="con-title">我的优惠劵</span> <span class="right_icon"></span>
					</div>
				</li>
			</ul>
		</section>
	</div>
	<script type="text/javascript"
		src="${path }/resource/plugin/layer/layer.js"></script>
	<script type="text/javascript">
		//init
		var clipboard = new Clipboard('#desInviteCode');
		//优雅降级:safari 版本号>=10,提示复制成功;否则提示需在文字选中后，手动选择“拷贝”进行复制
		clipboard.on('success', function(e) {
			layer.msg('复制成功!', {time: 1000});
		});
		clipboard.on('error', function(e) {
			layer.msg('请选择“拷贝”进行复制!', {time: 1000});
		});
	</script>
</body>
</html>